<template>
  <div class="user-header">
    <span class="user-header-trigger" @click="onClick">
      <a-icon type="menu-fold" style="font-size: 18px" />
    </span>
  </div>
</template>

<script>
export default {
  methods: {
    onClick() {
      this.$emit('collapsed')
    }
  }
}
</script>

<style lang="less" scoped>
.user-header {
  display: flex;
  align-items: center;

  &-trigger {
    padding: 0 20px;
    cursor: pointer;
  }
}
</style>
